#!/usr/bin/env bash
# check for presence of parameter
if [ -z $1 ]; then
  echo "Se foloseste: ./frm fisier cu clasele"}
echo "De exemplu ./frm alibaba"  
  exit 1
fi
# read the file into an array of lines
declare -c lines
let count=0
while read line; do
  lines[$count]=$line
  let count=count+1
done < "$1"
# iterate lines of the file
count=0
for line in "${lines[@]}"; do
  let count=count+1   
  eval ./scan "$line" 
done
